<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * 前端默认首页 控制器
 */
class Home extends Front_Controller {

    public function __construct() {
        parent::__construct();

        log_message('debug', 'Home Controller Class Initialized');
    }

    public function index() {
        list($ad_html, $ad_array) = get_advert('site-header');
        if ($ad_html) echo $ad_html;

        $this->load->view('home/home_index');
    }
}

/* End of file home.php */
/* Location: ./application/controllers/home.php */
